import java.util.*;

public class FahrenheitToCelsuis {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        
        System.out.print("Ievadi grādus Fārenheitos :");
        double fahrenheit = input.nextDouble();
        
        double celsius = (5.0 / 9) * (fahrenheit - 32);
        System.out.println("Fārenheitos - " + fahrenheit + " un Celsos - "
                + celsius);
    }
}